package com.lh0811.forge.dependency.security.core.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class SecurityDataRule {
    @Schema(description = "组织机构id")
    private Long departmentId;
    @Schema(description = "组织机构编号")
    private String departmentNo;
    @Schema(description = "组织机构名称")
    private String departmentName;
    @Schema(description = "租户岗位id")
    private Long postId;
    @Schema(description = "租户岗位编号")
    private String postNo;
    @Schema(description = "租户岗位名称")
    private String postName;
    @Schema(description = "数据表名称")
    private String dataTable;
    @Schema(description = "数据表维度字段")
    private String dataDimension;
    @Schema(description = "规则逻辑：1-等于 2-不等于 3-大于 4-小于 5-大于等于 6-小于等于 7-包含 8-不包含 9-在列表中 10-不在列表中")
    private String ruleLogic;
    @Schema(description = "逻辑值")
    private String ruleValue;
    @Schema(description = "获取数据源列表的URL")
    private String ruleSourceUrl;
    @Schema(description = "系统数据值提供器全类名")
    private String ruleValueProvider;
    @Schema(description = "1-字符串 2-数字")
    private String valueType;
    @Schema(description = "1-单值 2-列表 3-字典")
    private String valueStruct;
    @Schema(description = "逻辑值来源： 1-后台维护 2-系统数据源 3-系统计算后提供")
    private String ruleValueSource;
}
